package com.shanghaionstar.user.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import java.util.List;

public abstract class OnstarFlowCommonAdapter<T> extends CommonAdapter<T>{
	
	private int clickPosition = -1;

	public int getClickPosition() {
		return clickPosition;
	}

	public void setClickPosition(int clickPosition) {
		this.clickPosition = clickPosition;
	}

	public OnstarFlowCommonAdapter(Context context, List<T> datas, int layoutId) {
		super(context, datas, layoutId);
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent)
	{
		ViewHolder holder = ViewHolder.get(mContext, convertView, parent,
				layoutId, position);
		convert(holder, getItem(position),position);
		return holder.getConvertView();
	}
	



	@Override
	public void convert(ViewHolder holder, T t) {
		
	}
	
	public abstract void convert(ViewHolder holder,T t,int pos);

}
